package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SaleLoanOfferDiscretion generated by hbm2java
 */
@Entity
@Table(name="sale_loan_offer_discretion"
    ,catalog="lmis"
)
public class SaleLoanOfferDiscretion  implements java.io.Serializable {


     private SaleLoanOfferDiscretionId id;
     private SaleLoanOffer saleLoanOffer;
     private Date discretionDate;
     private BigDecimal limitRateVal;
     private BigDecimal exceedRateVal;
     private String dc01IsUsed;
     private Short dc01Val;
     private String dc02IsUsed;
     private String dc02Val;
     private String dc03IsUsed;
     private String dc04IsUsed;
     private BigDecimal dc04Val;
     private String dc05IsUsed;
     private String dc06IsUsed;
     private String dc07IsUsed;
     private String dc07Val;
     private String dc08IsUsed;
     private String dc09IsUsed;
     private String dc09Val;
     private String dc10IsUsed;
     private BigDecimal dc10Val;

    public SaleLoanOfferDiscretion() {
    }

	
    public SaleLoanOfferDiscretion(SaleLoanOfferDiscretionId id, SaleLoanOffer saleLoanOffer) {
        this.id = id;
        this.saleLoanOffer = saleLoanOffer;
    }
    public SaleLoanOfferDiscretion(SaleLoanOfferDiscretionId id, SaleLoanOffer saleLoanOffer, Date discretionDate, BigDecimal limitRateVal, BigDecimal exceedRateVal, String dc01IsUsed, Short dc01Val, String dc02IsUsed, String dc02Val, String dc03IsUsed, String dc04IsUsed, BigDecimal dc04Val, String dc05IsUsed, String dc06IsUsed, String dc07IsUsed, String dc07Val, String dc08IsUsed, String dc09IsUsed, String dc09Val, String dc10IsUsed, BigDecimal dc10Val) {
       this.id = id;
       this.saleLoanOffer = saleLoanOffer;
       this.discretionDate = discretionDate;
       this.limitRateVal = limitRateVal;
       this.exceedRateVal = exceedRateVal;
       this.dc01IsUsed = dc01IsUsed;
       this.dc01Val = dc01Val;
       this.dc02IsUsed = dc02IsUsed;
       this.dc02Val = dc02Val;
       this.dc03IsUsed = dc03IsUsed;
       this.dc04IsUsed = dc04IsUsed;
       this.dc04Val = dc04Val;
       this.dc05IsUsed = dc05IsUsed;
       this.dc06IsUsed = dc06IsUsed;
       this.dc07IsUsed = dc07IsUsed;
       this.dc07Val = dc07Val;
       this.dc08IsUsed = dc08IsUsed;
       this.dc09IsUsed = dc09IsUsed;
       this.dc09Val = dc09Val;
       this.dc10IsUsed = dc10IsUsed;
       this.dc10Val = dc10Val;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="loanOfferRecNo", column=@Column(name="LOAN_OFFER_REC_NO", nullable=false) ), 
        @AttributeOverride(name="discretionNo", column=@Column(name="DISCRETION_NO", nullable=false) ) } )
    public SaleLoanOfferDiscretionId getId() {
        return this.id;
    }
    
    public void setId(SaleLoanOfferDiscretionId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="LOAN_OFFER_REC_NO", nullable=false, insertable=false, updatable=false)
    public SaleLoanOffer getSaleLoanOffer() {
        return this.saleLoanOffer;
    }
    
    public void setSaleLoanOffer(SaleLoanOffer saleLoanOffer) {
        this.saleLoanOffer = saleLoanOffer;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="DISCRETION_DATE", length=19)
    public Date getDiscretionDate() {
        return this.discretionDate;
    }
    
    public void setDiscretionDate(Date discretionDate) {
        this.discretionDate = discretionDate;
    }

    
    @Column(name="LIMIT_RATE_VAL", precision=15)
    public BigDecimal getLimitRateVal() {
        return this.limitRateVal;
    }
    
    public void setLimitRateVal(BigDecimal limitRateVal) {
        this.limitRateVal = limitRateVal;
    }

    
    @Column(name="EXCEED_RATE_VAL", precision=15)
    public BigDecimal getExceedRateVal() {
        return this.exceedRateVal;
    }
    
    public void setExceedRateVal(BigDecimal exceedRateVal) {
        this.exceedRateVal = exceedRateVal;
    }

    
    @Column(name="DC01_IS_USED", length=1)
    public String getDc01IsUsed() {
        return this.dc01IsUsed;
    }
    
    public void setDc01IsUsed(String dc01IsUsed) {
        this.dc01IsUsed = dc01IsUsed;
    }

    
    @Column(name="DC01_VAL")
    public Short getDc01Val() {
        return this.dc01Val;
    }
    
    public void setDc01Val(Short dc01Val) {
        this.dc01Val = dc01Val;
    }

    
    @Column(name="DC02_IS_USED", length=1)
    public String getDc02IsUsed() {
        return this.dc02IsUsed;
    }
    
    public void setDc02IsUsed(String dc02IsUsed) {
        this.dc02IsUsed = dc02IsUsed;
    }

    
    @Column(name="DC02_VAL", length=300)
    public String getDc02Val() {
        return this.dc02Val;
    }
    
    public void setDc02Val(String dc02Val) {
        this.dc02Val = dc02Val;
    }

    
    @Column(name="DC03_IS_USED", length=1)
    public String getDc03IsUsed() {
        return this.dc03IsUsed;
    }
    
    public void setDc03IsUsed(String dc03IsUsed) {
        this.dc03IsUsed = dc03IsUsed;
    }

    
    @Column(name="DC04_IS_USED", length=1)
    public String getDc04IsUsed() {
        return this.dc04IsUsed;
    }
    
    public void setDc04IsUsed(String dc04IsUsed) {
        this.dc04IsUsed = dc04IsUsed;
    }

    
    @Column(name="DC04_VAL", precision=15)
    public BigDecimal getDc04Val() {
        return this.dc04Val;
    }
    
    public void setDc04Val(BigDecimal dc04Val) {
        this.dc04Val = dc04Val;
    }

    
    @Column(name="DC05_IS_USED", length=1)
    public String getDc05IsUsed() {
        return this.dc05IsUsed;
    }
    
    public void setDc05IsUsed(String dc05IsUsed) {
        this.dc05IsUsed = dc05IsUsed;
    }

    
    @Column(name="DC06_IS_USED", length=1)
    public String getDc06IsUsed() {
        return this.dc06IsUsed;
    }
    
    public void setDc06IsUsed(String dc06IsUsed) {
        this.dc06IsUsed = dc06IsUsed;
    }

    
    @Column(name="DC07_IS_USED", length=1)
    public String getDc07IsUsed() {
        return this.dc07IsUsed;
    }
    
    public void setDc07IsUsed(String dc07IsUsed) {
        this.dc07IsUsed = dc07IsUsed;
    }

    
    @Column(name="DC07_VAL", length=300)
    public String getDc07Val() {
        return this.dc07Val;
    }
    
    public void setDc07Val(String dc07Val) {
        this.dc07Val = dc07Val;
    }

    
    @Column(name="DC08_IS_USED", length=1)
    public String getDc08IsUsed() {
        return this.dc08IsUsed;
    }
    
    public void setDc08IsUsed(String dc08IsUsed) {
        this.dc08IsUsed = dc08IsUsed;
    }

    
    @Column(name="DC09_IS_USED", length=1)
    public String getDc09IsUsed() {
        return this.dc09IsUsed;
    }
    
    public void setDc09IsUsed(String dc09IsUsed) {
        this.dc09IsUsed = dc09IsUsed;
    }

    
    @Column(name="DC09_VAL", length=300)
    public String getDc09Val() {
        return this.dc09Val;
    }
    
    public void setDc09Val(String dc09Val) {
        this.dc09Val = dc09Val;
    }

    
    @Column(name="DC10_IS_USED", length=1)
    public String getDc10IsUsed() {
        return this.dc10IsUsed;
    }
    
    public void setDc10IsUsed(String dc10IsUsed) {
        this.dc10IsUsed = dc10IsUsed;
    }

    
    @Column(name="DC10_VAL", precision=15)
    public BigDecimal getDc10Val() {
        return this.dc10Val;
    }
    
    public void setDc10Val(BigDecimal dc10Val) {
        this.dc10Val = dc10Val;
    }




}


